import request from '@/utils/request'

// 查询表备份列表
export function listBackuptable(query) {
  return request({
    url: '/gbase/backuptable/list',
    method: 'get',
    params: query
  })
}

// 查询表备份详细
export function getBackuptable(backupId) {
  return request({
    url: '/gbase/backuptable/' + backupId,
    method: 'get'
  })
}

// 新增表备份
export function addBackuptable(data) {
  return request({
    url: '/gbase/backuptable',
    method: 'post',
    data: data
  })
}

// 修改表备份
export function updateBackuptable(data) {
  return request({
    url: '/gbase/backuptable',
    method: 'put',
    data: data
  })
}

// 删除表备份
export function delBackuptable(backupId) {
  return request({
    url: '/gbase/backuptable/' + backupId,
    method: 'delete'
  })
}
